<template>
<div>x坐标：{{ x }}</div>
<div>y坐标：{{ y }}</div>
</template>

<script>
import {Vue} from "vue-class-component";
import { useMouse } from '../hooks/useMouse'

export default class Hooks extends Vue {
  x = useMouse().x
  y = useMouse().y
}
</script>

<style scoped>

</style>
